package com.coscoshipping.rams.demo.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.coscoshipping.rams.demo.entity.ZjbossCheck;
import com.coscoshipping.rams.demo.mapper.ZjbossCheckMapper;
import com.coscoshipping.rams.demo.service.IZjbossCheckService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhaoyin.yang
 * @since 2025-01-14
 */
@Service
public class ZjbossCheckServiceImpl extends ServiceImpl<ZjbossCheckMapper, ZjbossCheck> implements IZjbossCheckService {


    @DS("slave_1")
    @Override
    public void groupConsumer() {
        this.lambdaQuery().list().forEach(System.out::println);
    }
}
